import App from './App'
import store from './store'
import utils from "./utils/index.js"
import tui from './common/httpRequest'
import regexp from "./utils/regexp.js"
import propsConfig from './components/thorui/tui-config/index.js'

//全局组件配置
uni.$tui = propsConfig
 
 

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false 
Vue.prototype.$utils = utils
Vue.prototype.tui = tui
Vue.prototype.$regexp = regexp
Vue.prototype.$store = store
App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.use(store) 
	app.config.globalProperties.tui = tui;
	app.config.globalProperties.$utils = utils;
	app.config.globalProperties.$regexp = regexp; 
	return {
		app
	}
}
// #endif
